.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-column {
  flex-direction: column;
}
.justify-center {
  justify-content: center;
}
.align-center {
  align-items: center;
}
.flex-between {
  justify-content: space-between;
}
.flex-between-center {
  justify-content: space-between;
  align-items: center;
}
.flex-center {
  justify-content: center;
  align-items: center;
}
.justify-around {
  justify-content: space-around;
}
.justify-end {
  justify-content: flex-end;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.pointer {
  cursor: pointer;
}
.text-underline {
  text-decoration: underline;
}
.bold-font {
  font-weight: bold;
}
.blue-font {
  color: #2993ff;
}
.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}
.m-auto {
  margin: auto;
}
.vertical-middle {
  vertical-align: middle;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.red-font {
  color: #ff4146;
}
.green-font {
  color: #4ccb86;
}
.color-999 {
  color: #999999;
}
.color-666 {
  color: #666666;
}
.color-333 {
  color: #333333;
}
.font-12 {
  font-size: 12px;
}
.font-16 {
  font-size: 16px;
}
.warning-font {
  color: #ff9f38;
}

// 列表
.table-top-btns {
  margin-bottom: 15px;
  h5 {
    margin-right: 40px;
  }
  .el-button + .el-dropdown {
    margin-left: 10px;
  }
}

// 提示框
.warn-box {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff6ed;
  border: 1px solid #ff9f37;
  margin-bottom: 15px;
}

// span图片
.span-bg {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

// 必填
.required-icon {
  color: #ff3939;
  font-style: normal;
}
// 添加
.add-div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 14px;
  color: #666666;
  border: 1px solid #eeeeee;
  cursor: pointer;
  margin-bottom: 15px;
  i {
    margin-right: 8px;
  }
}

// tab配置页
.category_page {
  padding: 0;
  .el-tabs {
    padding: 0 30px;
  }
  .config_wrapper {
    width: 600px;
    // height: 68vh;
    // overflow-y: auto;
    h5 {
      padding: 16px;
      border: 1px solid #eeeeee;
      border-left: none;
      border-right: none;
    }
    .main {
      padding: 15px 20px;
    }
  }
  .tab_content > .img_wrapper {
    padding: 30px;
    background-color: #f5f5f5;
  }
}

// 页面底部按钮
.footer-page {
  position: relative;
  padding-bottom: 80px;
}
.page-footer-btns {
  left: 0;
  right: 0;
  z-index: 10;
  position: absolute;
  padding-top: 15px;
  margin-top: 15px;
  padding-bottom: 15px;
  text-align: center;
  border-top: 1px solid #eeeeee;
}
.fix-footer .page-footer-btns {
  position: fixed;
  // right: 65px;
  // left: 255px;
  left: 225px;
  right: 30px;
  bottom: 0;
  border-top: none;
  background-color: #ffffff;
  box-shadow: 0px 5px 10px #cdcdcd;
}
.fix-footer-btns {
  padding-top: 15px;
  margin-top: 15px;
  padding-bottom: 15px;
  text-align: center;
  border-top: 1px solid #eeeeee;
}

.config_wrapper,
.icon_form,
.col_form,
.two_activity,
.category_item {
  .title {
    margin-bottom: 12px;
    color: #666666;
    p > span {
      margin-left: 10px;
      i {
        color: #999999;
        font-weight: bold;
      }
    }
  }
  .input_wrapper {
    margin-left: 10px;
    & > div {
      border: 1px solid #eeeeee;
      margin-bottom: 10px;
      label {
        width: 50px;
        font-size: 14px;
        border-right: 1px solid #eeeeee;
      }
    }
    .el-input__inner {
      border: none;
    }
  }
  .img_span {
    background-color: #eeeeee;
    i {
      margin-bottom: 10px;
    }
  }
}

// 列表搜索表单
.common_form_search {
  .el-form {
    .el-input {
      width: 180px;
    }
    .el-select {
      width: 150px;
    }
  }
  .el-input__inner {
    height: 35px;
    line-height: 35px;
  }
  .el-date-editor .el-range__icon,
  .el-date-editor .el-range-separator {
    line-height: 27px;
  }
  & + .el-divider--horizontal {
    margin-top: 0;
    margin-bottom: 15px;
  }
  .el-date-editor .el-range__close-icon {
    line-height: 28px;
  }
}

// 编辑页表头
.edit-header {
  padding: 10px 20px;
  background-color: $gray-bg;
  span {
    padding: 0 10px;
    border-left: 3px solid $mainBlue;
  }
}

//顶部tab
.top_tabs {
  position: relative;
  .el-link {
    position: absolute;
    right: 60px;
    bottom: 24px;
    z-index: 3;
  }
}

// 表格顶部按钮
.el-button.add-btn {
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  color: $mainBlue !important;
  border-color: $mainBlue;
  &:focus,
  &:hover {
    color: #ffffff !important;
    border-color: $mainBlue;
    background-color: $mainBlue;
    opacity: 1;
    .svg-icon {
      fill: #ffffff;
    }
  }
  i {
    font-size: 16px;
  }
  .svg-icon {
    fill: $mainBlue;
    margin-right: 5px;
  }
}
.el-button.export-btn {
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  color: $warn-color;
  border-color: $warn-color;
  &:focus,
  &:hover {
    color: #ffffff;
    border-color: $warn-color;
    background-color: $warn-color;
    opacity: 1;
    .svg-icon {
      fill: #ffffff;
    }
  }
  i {
    font-size: 16px;
  }
  .svg-icon {
    fill: $warn-color;
    margin-right: 5px;
  }
}
.el-button.delete-btn {
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  color: #999999;
  border-color: #e6e6e6;
  &:focus,
  &:hover {
    color: $mainBlue;
    border-color: $mainBlue;
    background-color: #ffffff;
    opacity: 1;
    .svg-icon {
      fill: $mainBlue;
    }
  }
  i {
    font-size: 16px;
  }
  .svg-icon {
    fill: #999999;
    margin-right: 5px;
  }
}

.tab_content .config_wrapper {
  position: relative;
  .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
  }
}

// tab头部
.tab-title-page {
  padding: 0;
  background-color: $main-bg;
  .middle_divider {
    height: 20px;
    background-color: $main-bg;
    margin: 0;
  }
  .nav_tabs {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 0 0 10px 10px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
    .el-tabs__nav-wrap::after {
      display: none;
    }
    .el-tabs__header {
      margin-bottom: 0;
    }
  }
  .child_page {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
  }
}

// 密码修改成功提示框
.el-message-box.success_msgbox {
  padding-bottom: 10px;
  .success_icon {
    font-size: 80px;
    color: $success-color;
    font-weight: bold;
  }
  .el-message-box__header {
    display: none;
  }
  .el-message-box__message p {
    margin: 20px 0;
    line-height: 36px;
    font-size: 16px;
  }
}

.long-text-btn span {
  white-space: pre-wrap;
}

.w-e-text img {
  max-width: 100% !important;
}
